package com.njxzc.igo.utils;

import java.util.List;

import com.njxzc.igo.model.Products;

public class Pager {
	private int pageSize; 
	private int pageNo; 
	private int rowCount;
	private int allPages;
	private List result;
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getRowCount() {
		return rowCount;
	}
	public void setRowCount(int rowCount) {
		this.rowCount = rowCount;
	}
	
	
	
	public List getResult() {
		return result;
	}
	public void setResult(List result) {
		this.result = result;
	}
	public int getAllPages() {
		return allPages;
	}
	public void setAllPages(int allPages) {
		this.allPages = allPages;
	}

	

	public Pager() {
		super();
	}
	public Pager(int pageSize, int pageNo, int rowCount, int allPages, List result) {
		super();
		this.pageSize = pageSize;
		this.pageNo = pageNo;
		this.rowCount = rowCount;
		this.allPages = allPages;
		this.result = result;
	}
	public String toString() {
		return "Pager [pageSize=" + pageSize + ", pageNo=" + pageNo
				+ ", rowCount=" + rowCount + ", allPages=" + allPages
				+ ", result=" + result + "]";
	}

	
	
}
